package com.itheima.health.service;

import com.itheima.health.exception.MyException;
import com.itheima.health.pojo.Order;

import java.util.Map;

/**
 * 套餐订单service
 * @author : HuChunping
 */
public interface OrderService {


    /**
     * 预约提交
     * @Author: HuChunping
     * @Date: 2021/1/16 22:44
     * @param orderInfo: 前端传的体检人信息数据，用map封装
     * @return: com.itheima.health.pojo.Order
     **/
    Order submitOrder(Map<String, String> orderInfo) throws MyException;

    /**
     * 查询预约订单信息
     * @Author: HuChunping
     * @Date: 2021/1/17 21:53
     * @param id:
     * @return: java.util.Map<java.lang.String,java.lang.String>
     **/
    Map<String, String> findById(int id);
}
